<script setup>
  import router from './router';


</script>

<template>
  <div>
    <!-- 动态参数 -->
    <router-link to="/find">发现</router-link>
    <router-link to="/select">收集</router-link>
    <router-link to="/sort">排序</router-link>
    <router-view></router-view>
  </div>
</template>


<style scoped>
  * {
    margin: 0;
    padding: 0;
  }

  div a {
    display: inline-block;
    width: 100px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
  }

  div a.router-link-active {
    color: blue;
    background-color: red;
  }
</style>